package com.tripwego.client;

import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;
import com.tripwego.client.ui.pageAccueil.HomeViewImpl;
import com.tripwego.client.ui.pageAccueil.IHomeView;
import com.tripwego.client.ui.pageVoyage.IVoyageView;
import com.tripwego.client.ui.pageVoyage.VoyageViewImpl;

public class ClientFactoryImpl implements ClientFactory {
	private final EventBus eventBus = new SimpleEventBus();
	private final PlaceController placeController = new PlaceController(
			eventBus);

	private final IHomeView homeView = new HomeViewImpl();

	private final IVoyageView voyageView = new VoyageViewImpl();

	public EventBus getEventBus() {
		return eventBus;
	}

	public PlaceController getPlaceController() {
		return placeController;
	}

	@Override
	public IVoyageView getVoyageView() {
		return voyageView;
	}

	@Override
	public IHomeView getHomeView() {
		return homeView;
	}
}